package com.bestcem.xm.ticket.service;

import com.bestcem.xm.common.core.domain.web.ServiceResult;
import com.bestcem.xm.ticket.entity.mongo.Record;
import com.bestcem.xm.ticket.service.dto.RecordDTO;

/**
 * DS_TICKET_DAO，从工单迁移过来的record表
 *
 * @author jy.zhao
 * @version 1.0
 * @date 2021/8/19 17:04
 **/
public interface AlertRecordService {

    /**
     * 保存record
     *
     * @param entity
     * @return Record
     * @author jy.zhao
     * @date 2021/8/19 17:06
     **/
    String saveRecordInfo(Record entity);

    /**
     * 获取触发预警/工单规则的 问卷项目、触发的规则、答卷数据等信息
     *
     * @param id
     * @return TicketRecordVO
     * @author gy.liu
     * @date 2021/8/26
     */
    ServiceResult<RecordDTO> getRecordInfo(String id, String userId, String orgId);
}
